home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / Exec / ports.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  2KB  |  71 lines

  1. #ifndef EXEC_PORTS_H
  2. #define EXEC_PORTS_H 1
  3. /*
  4. ** ports.h for ACE Basic
  5. **
  6. ** Note: Translated to ACE by ConvertC2ACE
  7. **       @ MapMeadow Software, Nils Sjoholm
  8. **
  9. **
  10. ** Date: 09/02/95
  11. **
  12. **
  13. */
  14.  
  15. /*
  16. ** This are the StructPointer defines for ports.h
  17. */
  18. #ifndef MessagePtr
  19. #define MessagePtr ADDRESS
  20. #endif
  21. #ifndef MsgPortPtr
  22. #define MsgPortPtr ADDRESS
  23. #endif
  24. /*
  25. ** End of StructPointer defines for ports.h
  26. */
  27.       
  28. #ifndef EXEC_NODES_H
  29. #include <exec/nodes.h>
  30. #endif /* EXEC_NODES_H */
  31.  
  32. #ifndef EXEC_LISTS_H
  33. #include <exec/lists.h>
  34. #endif /* EXEC_LISTS_H */
  35.  
  36. #ifndef EXEC_TASKS_H
  37. #include <exec/tasks.h>
  38. #endif /* EXEC_TASKS_H */
  39.  
  40.  
  41. /****** MsgPort *****************************************************/
  42.  
  43. STRUCT MsgPort  
  44.     Node mp_Node 
  45.     BYTE    mp_Flags 
  46.     BYTE    mp_SigBit       /* signal bit number    */
  47.     ADDRESS   mp_SigTask      /* object to be signalled */
  48.     _List mp_MsgList     /* message linked list  */
  49. END STRUCT 
  50.  
  51. #define mp_SoftInt mp_SigTask   /* Alias */
  52.  
  53. /* mp_Flags: Port arrival actions (PutMsg) */
  54. #define PF_ACTION   3   /* Mask */
  55. #define PA_SIGNAL   0   /* Signal task in mp_SigTask */
  56. #define PA_SOFTINT  1   /* Signal SoftInt in mp_SoftInt/mp_SigTask */
  57. #define PA_IGNORE   2   /* Ignore arrival */
  58.  
  59.  
  60. /****** Message *****************************************************/
  61.  
  62. STRUCT _Message
  63.     Node mn_Node 
  64.     MsgPortPtr  mn_ReplyPort   /* message reply port */
  65.     SHORTINT   mn_Length           /* total message length,  in bytes */
  66.                     /* (include the size of the Message */
  67.                     /* structure in the length) */
  68. END STRUCT 
  69.  
  70. #endif  /* EXEC_PORTS_H */
  71.